package com.xhsj.user.sms.process.mapper;

import com.xhsj.user.sms.purchase.vo.ProgressOverviewListQueryVo;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.sms.process.entity.TbPurchaseProcessNode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 流程节点表 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-03-16
 */
@Mapper
public interface TbPurchaseProcessNodeMapper extends BaseMapper<TbPurchaseProcessNode> {

    Map<String, Object> getNextNodeId(@Param("nodeId") String nodeId, @Param("status") Integer status, @Param("type") String type);


    //    进度总览
    List<ProgressOverviewListQueryVo> progressOverviewList(@Param("processType") String processType, @Param("category") int category);

    //得到核检的下一个流程
    List<Map<String, Object>> getZJNextNodeId(@Param("nodeId") String nodeId, @Param("type") String type);
}
